home *** CD-ROM | disk | FTP | other *** search
/ QuickTime 2.0 Beta / Quicktime 2.0 Beta.iso / Programming Stuff / Interfaces / Universal Interfaces / DiskInit.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-01-30  |  2.0 KB  |  75 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        DiskInit.h
  3.  
  4.     Copyright:    © 1984-1993 by Apple Computer, Inc., all rights reserved.
  5.  
  6.     WARNING
  7.     This file was auto generated by the interfacer tool. Modifications
  8.     must be made to the master file.
  9.  
  10. */
  11.  
  12. #ifndef __DISKINIT__
  13. #define __DISKINIT__
  14.  
  15. #ifndef __TYPES__
  16. #include <Types.h>
  17. /*    #include <ConditionalMacros.h>                                */
  18. /*    #include <MixedMode.h>                                        */
  19. /*        #include <Traps.h>                                        */
  20. #endif
  21.  
  22. #if defined(powerc) || defined (__powerc)
  23. #pragma options align=mac68k
  24. #endif
  25. struct HFSDefaults {
  26.     char                        sigWord[2];                        /* signature word*/
  27.     long                        abSize;                            /* allocation block size in bytes*/
  28.     long                        clpSize;                        /* clump size in bytes*/
  29.     long                        nxFreeFN;                        /* next free file number*/
  30.     long                        btClpSize;                        /* B-Tree clump size in bytes*/
  31.     short                        rsrv1;                            /* reserved*/
  32.     short                        rsrv2;                            /* reserved*/
  33.     short                        rsrv3;                            /* reserved*/
  34. };
  35. #if defined(powerc) || defined(__powerc)
  36. #pragma options align=reset
  37. #endif
  38.  
  39. typedef struct HFSDefaults HFSDefaults;
  40.  
  41. #ifdef __cplusplus
  42. extern "C" {
  43. #endif
  44.  
  45. #if SystemSevenOrLater
  46. extern pascal void DILoad(void)
  47.  THREEWORDINLINE(0x7002, 0x3F00, 0xA9E9);
  48. extern pascal void DIUnload(void)
  49.  THREEWORDINLINE(0x7004, 0x3F00, 0xA9E9);
  50. extern pascal short DIBadMount(Point where, long evtMessage)
  51.  THREEWORDINLINE(0x7000, 0x3F00, 0xA9E9);
  52. extern pascal OSErr DIFormat(short drvNum)
  53.  THREEWORDINLINE(0x7006, 0x3F00, 0xA9E9);
  54. extern pascal OSErr DIVerify(short drvNum)
  55.  THREEWORDINLINE(0x7008, 0x3F00, 0xA9E9);
  56. extern pascal OSErr DIZero(short drvNum, ConstStr255Param volName)
  57.  THREEWORDINLINE(0x700A, 0x3F00, 0xA9E9);
  58. #else
  59. extern pascal void DILoad(void);
  60. extern pascal void DIUnload(void);
  61. extern pascal short DIBadMount(Point where, long evtMessage);
  62. extern pascal OSErr DIFormat(short drvNum);
  63. extern pascal OSErr DIVerify(short drvNum);
  64. extern pascal OSErr DIZero(short drvNum, ConstStr255Param volName);
  65. #endif
  66.  
  67. extern OSErr dibadmount(Point *where, long evtMessage);
  68. extern OSErr dizero(short drvnum, char *volName);
  69. #ifdef __cplusplus
  70. }
  71. #endif
  72.  
  73. #endif
  74.  
  75.